<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Context options</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oggvorbis.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oggvorbis.examples.html">范例</a></div>
 <div class="up"><a href="book.oggvorbis.html">oggvorbis</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="oggvorbis.contexts" class="chapter">  
 <h1>Context options</h1>

 <table class="doctable table">
  <caption><strong>OGG/Vorbis tuning options</strong></caption>
  
   <thead>
    <tr>
     <th>Option</th>
     <th>Definition</th>
     <th>Relevance</th>
     <th>Default</th>
    </tr>

   </thead>

   <tbody class="tbody">
    <tr>
     <td>pcm_mode</td>
     <td>PCM byte encoding used. See constants below.</td>
     <td>Read / Write</td>
     <td><strong><code>OGGVORBIS_PCM_S16_LE</code></strong></td>
    </tr>

    <tr>
     <td>rate</td>
     <td>PCM Sampling rate. Measured in Hz.</td>
     <td>Write only</td>
     <td><strong><code>44100</code></strong></td>
    </tr>

    <tr>
     <td>bitrate</td>
     <td>
      Vorbis Average Bitrate Encoding / Variable Bitrate Encoding.  
      Measured in bps (ABR) or Quality level (VBR: 0.0 to 1.0).  
      128000 ABR is rough equal to 0.4 VBR.
     </td>
     <td>Write only</td>
     <td><strong><code>128000</code></strong></td>
    </tr>

    <tr>
     <td>channels</td>
     <td>Number of PCM channels.  1 == Mono, 2 == Stereo.</td>
     <td>Write only</td>
     <td><strong><code>2</code></strong></td>
    </tr>

    <tr>
     <td>serialno</td>
     <td>
      Serial Number of stream within file.  Must be unique within file.
      Because of the potential to select a duplicate serial number within
      a chained file, make efforts to manually assign unique numbers when
      encoding.
     </td>
     <td>Write only</td>
     <td><em class="emphasis">Random</em></td>
    </tr>

    <tr>
     <td>comments</td>
     <td>
      Associative array of file comments.  
      Will be translated to <em>strtoupper($name) . &quot;=$value&quot;</em>.
      Note: This context option is not available in oggvorbis-0.1
     </td>
     <td>Write only</td>
     <td><em>array(&#039;ENCODER&#039; =&gt; &#039;PHP/OggVorbis, http://pear.php.net/oggvorbis&#039;)</em></td>
    </tr>

   </tbody>
  
 </table>

</div>
<hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="oggvorbis.constants.html">预定义常量</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oggvorbis.examples.html">范例</a></div>
 <div class="up"><a href="book.oggvorbis.html">oggvorbis</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
